package cn.highedu.demoservice.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    private Logger logger = LoggerFactory.getLogger(DemoController.class);

    @GetMapping("/hello/{name}")
    public String hello(@PathVariable String name) {
        logger.info("hello name: {}", name);
        return "hello " + name + "，this is demo service 1";
    }
}
